
<!-- widget grid -->
<section id="widget-grid" class="">

    <!-- row -->
    <div class="row">

        <!-- NEW WIDGET START -->
        <article class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

            <!-- Widget ID (each widget will need unique ID)-->
            <div class="jarviswidget jarviswidget-color-blueDark" id="sales-globals-1" data-widget-editbutton="false" data-widget-deletebutton="false">
                <header>
                    <span class="widget-icon"> <i class="fa fa-table"></i> </span>
                    <h2> 每日分红配置</h2>
                </header>

                <!-- widget div-->
                <div>

                    <!-- widget edit box -->
                    <div class="jarviswidget-editbox">
                        <!-- This area used as dropdown edit box -->

                    </div>
                    <!-- end widget edit box -->

                    <!-- widget content -->
                    <div class="widget-body no-padding">


                        
                            <form class="smart-form" id="fenhong-form" action="{:U('Config/fenhong')}" method="POST">

                
                                            <fieldset>
                
                                                <section>
                                                    <label class="label">1级会员动态分红</label>
                                                    <label class="input">
                                                        <input type="text"  name="fenhong1" required value="{$data.fenhong1}" maxlength="10">
                                                    </label>
                                                    <div class="note">
                                                        <!-- <strong>Maxlength</strong>-->
                                                    </div>
                                                </section>
                                                
                                                <section>
                                                    <label class="label">2级会员动态分红</label>
                                                    <label class="input">
                                                        <input type="text"  name="fenhong2" required value="{$data.fenhong2}" maxlength="10">
                                                    </label>
                                                    <div class="note">
                                                        <!-- <strong>Maxlength</strong>-->
                                                    </div>
                                                </section>
                                                <section>
                                                    <label class="label">3级会员动态分红</label>
                                                    <label class="input">
                                                        <input type="text"  name="fenhong3" required value="{$data.fenhong3}" maxlength="10">
                                                    </label>
                                                    <div class="note">
                                                        <!-- <strong>Maxlength</strong>-->
                                                    </div>
                                                </section>
                                                <section>
                                                    <label class="label">4级会员动态分红</label>
                                                    <label class="input">
                                                        <input type="text"  name="fenhong4" required value="{$data.fenhong4}" maxlength="10">
                                                    </label>
                                                    <div class="note">
                                                        <!-- <strong>Maxlength</strong>-->
                                                    </div>
                                                </section>
                                                <section>
                                                    <label class="label">5级会员动态分红</label>
                                                    <label class="input">
                                                        <input type="text"  name="fenhong5" required value="{$data.fenhong5}" maxlength="10">
                                                    </label>
                                                    <div class="note">
                                                        <!-- <strong>Maxlength</strong>-->
                                                    </div>
                                                </section>
                                                                                
                                                
                                            </fieldset>
                                            
                                            
                
                                            <footer>
                                                <button type="submit" class="btn btn-primary">
                                                                                                                                    确定
                                                </button>
                                                <button type="button" class="btn btn-default" onclick="window.history.back();">
                                                                                                                                 取消
                                                </button>
                                            </footer>
                                        </form>

                    </div>
                    <!-- end widget content -->

                </div>
                <!-- end widget div -->

            </div>
            <!-- end widget -->

        </article>
        <!-- WIDGET END -->

    </div>

    <!-- end row -->

</section>
<!-- end widget grid -->

<script type="text/javascript">
    pageSetUp();


</script>


<script type="text/javascript">
    //做一些清理工作
    $(".DTTT_dropdown").remove();
    $('.ui-dialog').remove();
    $('.datetimepicker').remove();
    
    $(function(){
    	$('#fenhong-form').submit(function(){
            $(this).ajaxSubmit(function(data) {     
                if( data.status==200 ){
                    alert('分红更新成功');
                }else{
                    alert(data.msg);
                }
            });
            return false;
        });
    });
    
    

    
    </script>